package com.fc.mall.service.impl;/**
 * Created by Administrator on 2019/9/17.
 */

import com.fc.mall.dao.UmsIntegrationChangeHistoryDao;
import com.fc.mall.dto.UmsIntegrationChangeHistoryFull;
import com.fc.mall.dto.UmsMemberIntegrationQueryParam;
import com.fc.mall.service.UmsIntegrationChangeHistoryService;
import com.fc.mall.util.Utils;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author Climb
 * @Date 2019/9/17
 **/
@Service
public class UmsIntegrationChangeHistoryServiceImpl implements UmsIntegrationChangeHistoryService {
    @Autowired
    private UmsIntegrationChangeHistoryDao integrationDao;

    @Override
    public List<UmsIntegrationChangeHistoryFull> selectById(UmsMemberIntegrationQueryParam queryParam, Integer pageSize, Integer pageNum) {
        PageHelper.startPage(pageNum,pageSize);
        List<UmsIntegrationChangeHistoryFull> umsIntegrationChangeHistoryFull=integrationDao.selectByExample(queryParam);
        for (UmsIntegrationChangeHistoryFull uichf:umsIntegrationChangeHistoryFull) {
            uichf.setNickname(Utils.urlDecoderTransfer(uichf.getNickname()));
        }
        return umsIntegrationChangeHistoryFull;
    }
}
